package com.taofuxn.admin.common.exception;


import lombok.Getter;

public class MvcCommonException extends RuntimeException {

    @Getter
    private ExceptionEnum exceptionEnum;

    public MvcCommonException(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public MvcCommonException() {
        super();
    }

    public MvcCommonException(String message) {
        super(message);
    }

    public MvcCommonException(String message, Throwable cause) {
        super(message, cause);
    }

    public MvcCommonException(Throwable cause) {
        super(cause);
    }

    protected MvcCommonException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
